<?php

namespace App\Http\Controllers\Admin;

use App\Models\AdminUser;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Session;

class IndexController extends Controller
{
    //首页默认加载页面
    public function welcome()
    {
        return view('admin.index.welcome');
    }

    //
    public function index()
    {
        $id = Session::get('uid');
        $admin_info = AdminUser::find($id);

        return view('admin.index.index', ['admin'=>$admin_info]);
    }
}
